package com.ext.aic.box.model;

import java.io.Serializable;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ConversationMeta implements Serializable {

    @Id(assignable = true)
    private long id;

    //用户昵称
    private String nick;

    //最后一条消息
    private String lastMsg;

    //最后一条消息时间
    private String lastMsgTime;

    //会话类型：0-单聊，1-群聊，2-公众号，3-小程序，4-企业微信，5-其他
    private int type;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
}
